package cn.ad.server.web.log.entity;

public class AdTrafficHttpLog extends AdserverEventLog {

	/**
	 * 请求线程名。
	 */
	private String requstThreadName;
	/**
	 * 请求时间
	 */
	private long requstTime;
	/**
	 * 请求url
	 */
	private String url;
	/**
	 * 请求方式
	 */
	private String httpMethod;
	
	 /** Name of the protocol. */
    protected String protocol;

    /** Major version number of the protocol */
    protected int major;

    /** Minor version number of the protocol */
    protected int minor;
	/**
	 * 返回内容的字节长度。
	 */
	private long length;
	/**
	 * 状态码
	 */
	private int statusCode;
	/**
	 * 请求时长（毫秒）
	 */
	private long time;
	
	/**
	 *
	 * 101 补量渠道
	 * 102 sts->gdt广告请求。
	 *  
	 */
	private int eventType;
	
	/**
	 * 其他
	 */
	private String ext;

	public String getRequstThreadName() {
		return requstThreadName;
	}

	public void setRequstThreadName(String requstThreadName) {
		this.requstThreadName = requstThreadName;
	}

	public long getRequstTime() {
		return requstTime;
	}

	public void setRequstTime(long requstTime) {
		this.requstTime = requstTime;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getProtocol() {
		return protocol;
	}

	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}

	public int getMajor() {
		return major;
	}

	public void setMajor(int major) {
		this.major = major;
	}

	public int getMinor() {
		return minor;
	}

	public void setMinor(int minor) {
		this.minor = minor;
	}

	public long getLength() {
		return length;
	}

	public void setLength(long length) {
		this.length = length;
	}

	public int getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(int statusCode) {
		this.statusCode = statusCode;
	}

	public long getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = time;
	}

	public String getExt() {
		return ext;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

	public String getHttpMethod() {
		return httpMethod;
	}

	public void setHttpMethod(String httpMethod) {
		this.httpMethod = httpMethod;
	}
	
	public int getEventType() {
		return eventType;
	}

	public void setEventType(int eventType) {
		this.eventType = eventType;
	}

	@Override
	public String toString() {
		return "AdTrafficHttpLog [requstThreadName=" + requstThreadName + ", requstTime=" + requstTime + ", url=" + url
				+ ", httpMethod=" + httpMethod + ", protocol=" + protocol + ", major=" + major + ", minor=" + minor
				+ ", length=" + length + ", statusCode=" + statusCode + ", time=" + time + ", eventType=" + eventType
				+ ", ext=" + ext + ", getServerId()=" + getServerId() + ", getRequestTimestamp()="
				+ getRequestTimestamp() + "]";
	}
	
}
